Passed
Push — master ( e95921...ddbd1b )
by Dimas
13:28 queued 05:15
created

index.js ➔ genCacheKey   A

Complexity

Conditions 5

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 5
eloc 2
c 0
b 0
f 0
dl 0
loc 3
rs 9.3333
1
$(document).ready(function () {
2
  $.ajax({
3
    url: "clean",
4
    method: "POST",
5
    data: {
6
      latest: "true",
7
    },
8
    success: function (res) {
9
      if (typeof res == "object") {
10
        if (res.hasOwnProperty("result")) {
11
          $("#lfile").html(res.result[0]);
12
          $("#ltime").html(res.result[1]);
13
        }
14
      }
15
    },
16
  });
17
});
18
19
function genCacheKey() {
20
  $("#keyCache").val(uuidv4());
21
}
22